{include file="news/header.tpl"}
{literal}
<style>
#content {top: 0px;padding: 5px;}
.table th{background:#f0f0f0;}
.table td{text-align:left;}
.suoding{height:30px;}
.commentimg {max-width: 100%;max-height: 100%;}
#profile a{box-shadow: 1px 2px 3px darkkhaki;padding: 5px 0px;border-bottom: 2px dotted #ccc;margin-bottom: 5px;display: block;text-align: center;}
</style>
{/literal}

<!-- 头部// -->


	<!-- start: Content -->
			<div id="content" class="">
			
						
			<div class="row-fluid">


<div class="box"><!-- Default panel contents -->


<ul class="nav nav-tabs" id="myTab"> 
      <li class="active"><a href="#desc">宝贝图片</a></li> 

      <li><a href="#home">产品描述</a></li> 
      <li><a href="#profile">实拍出样</a></li> 
    </ul>
    
    
<div class="tab-content"> 

<div class="tab-pane active" id="desc" style="text-align: center;">
{if $goods.base.image!=""}
<img src="{$goods.base.image}" width="350px" height="350px;"></br>
{$goods.base.name}
</div>


      <div class="tab-pane" id="home">
{$goods.desc.content}
</div>

 <div class="tab-pane" id="profile">
 
{foreach from=$goods.comment item=l}
<div style="background:#fafafa;color:#666">由  <span style="color:red">{$l.real_name}</span> [{$l.area}] <small>{$l.date|wtime}</small> 上传</div>
{$l.comment}
{/foreach}
{else}
<img src="./static/attached/face/default/1.gif"> <h1>图片被我吃了</h1>
{/if}
</div>
</div>
</div>

</div>


<script src="./static/bootstrap2/js/bootstrap.min.js" language="javascript"></script>
  
{literal}
<script>
delsrc();
function delsrc(){
  $("#profile a").each(function(){
	  $(this).attr("href","javascript:void(0)");
	 })
	
}
      $(function () { 
    $('#myTab a:first').tab('show'); // Select first tab 
        $('#myTab a').click(function (e) { 
            
          e.preventDefault();//阻止a链接的跳转行为 
          $(this).tab('show');//显示当前选中的链接及关联的content 
        }) 
      }) 
       </script>
      {/literal}